from PIL import Image


img = Image.open("lena.png")

rotate_img = img.rotate(45)
rotate_img.show()
